package com.lx.dynamicdatasouce.mybatis.demo.mapper.w;

import com.lx.dynamicdatasouce.mybatis.demo.entity.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author lX
 * @version JDK 8
 * @className RUserMapper (此处以class为例)
 * @date 2024/10/9
 * @description TODO
 */
public interface WUserMapper {


    @Select("SELECT * FROM user")
    List<User> list();

    @Insert("INSERT INTO  user(`name`) VALUES (#{name})")
    void save(User user);
}
